import React, { PropTypes } from 'react';
import { Router, Route, IndexRoute, Link } from 'dva/router';
import Alert from './routes/alert';
import Menu from './routes/menu';
import VtxMessage from './routes/message';
import VtxNotification from './routes/notification';
import VtxPopconfirm from './routes/popconfirm'
import VtxRightTool from './routes/righttool'
export default function({ history }) {
  return (
    <Router history={history}>
      <Route path="/" component={Menu} />
      <Route path="/alert" component={Alert} />
      <Route path="/message" component={VtxMessage} />
      <Route path="/notification" component={VtxNotification} />
      <Route path="/popconfirm" component={VtxPopconfirm} />
      <Route path="/righttool" component={VtxRightTool} />
    </Router>
  );
};
